package com.framework.service.core.service;

import com.framework.common.domain.R;
import com.framework.core.api.response.IdentityRes;
import org.springframework.web.multipart.MultipartFile;

/**
 * 通用服务接口
 * @author zhoubb
 * @version V1.0
 * @Date 2020/4/26 21:47
 * @since JDK 1.8
 */
public interface ICommonSdkService {

    /**
     * 阿里云身份认证
     * @param cardNo
     * @return
     */
    public String identityCardByAliyun(String cardNo);

    /**
     * 发送短信验证码
     * @param phone
     * @param code
     * @return
     */
    public String sendMessageForCodeByAliyun(String phone, String code);

    /**
     *短信通知订单状态
     * @param phone
     * @param params
     * @param skin
     * @return
     */
    public String sendMessageByAliyun(String phone, String params, String skin);

    /**
     *短信通知
     * @param openId
     * @param type
     * @param title
     * @return
     */
    public String sendMessageForProcess(String openId, String type, String title);


    /**
     * 百度ocr识别身份证照片-无需上传
     * @param cardImg
     * @param imgSide
     * @return
     */
    public R identityCardByBaidu(String cardImg, String imgSide);

    /**
     * 百度ocr识别营业执照-无需上传
     * @param licenseImg
     * @return
     */
    public R identityBusinessByBaidu(String licenseImg);

    /**
     * 百度ocr识别身份证照片-同时上传
     * @param file
     * @param imgSide
     * @return
     */
    public IdentityRes identityCardByBaidu(MultipartFile file, String imgSide);

    /**
     * 百度ocr识别营业执照-同时上传
     * @param file
     * @return
     */
    public IdentityRes identityBusinessByBaidu(MultipartFile file);
}
